<?php
class AdminModel extends Model{
	public function get_admin($username){
		return M('admin')->db(1,'DB_CONFIG1')->where('admin_name="'.$username.'"')->find();
	}
	public function add_admin($data){
		return M('admin')->db(1,'DB_CONFIG1')->add($data);
	}
}
?>